<?php
include_once 'lib/frontend.class.php';
$page = new Frontend();
$realyUrl = $page->GetRealyUrl($_GET['id']);

if($realyUrl=="")
{
	//Profilo inesistente
	header("HTTP/1.1 301 Moved Permanently");
	header("Location: http://www.escortfashion.com/404.php");
	exit();
} else if($realyUrl!=$page->curPageURL()){
	//Url profilo vecchio o scritto male
	header("HTTP/1.1 301 Moved Permanently");
	header("Location: ".$realyUrl);
	exit();
}	
$page->content = '';
$sesso="T";

$tipo_class_CONTRATTO = $page->GetTipoClassUtente($_GET['id']); 
if($tipo_class_CONTRATTO=="T")
	include 'template/' . TEMPLATE_NAME . '/template_top.php';
else
	include 'template/' . TEMPLATE_NAME . '/template-dettaglio.php';
 
?>
